<div class="grid_4">
    <div class="widget_wrap">
        
        <div class="widget_content">
            <?php echo $this->Form->create('Consultasexternas', array('url' => array('action' => 'ajaxtransferirpaciente')))
             ?>
             
            <?php echo $this->Form->hidden('Consultasexterna.id', array('value' => $idConsulta)) ?>
            <?php echo $this->Form->hidden('Consultasexterna.estadoatencion', array('value' => 'T')) ?>
            <ul>
                <li>
                    <div class="form_grid_12">
                        <div class="form_input">
                            <div class="form_grid_12">
                                <label class="field_title">Seleccione un medico</label>
                                <div class="form_input">
                                    <?php //debug($medicos); ?>
                                    <select name="data[Consultasexterna][medico_id]" data-placeholder="Seleccione un medico" class="chzn-select-deselect" tabindex="1">
                                        <option value=""></option>
                                        <?php foreach ($medicos as $m): ?>
                                            
                                                <option value="<?php echo $m['User']['id'] ?>" selected="selected">
                                                    <?php echo $m['User']['nombre'].' '.$m['User']['apellido_paterno'].' '.$m['User']['apellido_materno'] ?>
                                                </option>
                                            
                                        <?php endforeach; ?>
                                    </select>
                                </div>
                            </div>    
                        </div>
                    </div>
                </li>
                <li>
                    <div class="form_grid_12">
                        <div class="form_input">
                            <?php
                            $options = array(
                            'class' => 'btn_small btn_blue',
                            'Value' => 'transferir')
                            ?>
                            <?php echo $this->Form->end($options, array('escape'=>'false'));?>
<!--                            <button type="submit" class="btn_small btn_blue">
                                <span>Transferir</span>
                            </button>--><!-- 
                            <button type="reset" class="btn_small btn_blue"><span>Reset</span></button> -->
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>